package com.atguigu.team.domain;

import com.atguigu.team.service.Status;

public class Programmer extends Employee {
	
	private int memberId;
	private Status status;//状态
	private Equipment equipment;//关联的对象，某种设备
 
	public Programmer() {}
	
	public Programmer(int id, String name, int age, double salary,int memberId, Status status,Equipment equipment) {
		super(id, name, age, salary);
		this.memberId = memberId;
		this.status = status;
		this.equipment = equipment;
	}
 
	public int getMemberId() {
		return memberId;
	}
 
	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}
 
	public Status getStatus() {
		return status;
	}
 
	public void setStatus(Status status) {
		this.status = status;
	}
 
	public Equipment getEquipment() {
		return equipment;
	}
 
	public void setEquipment(Equipment equipment) {
		this.equipment = equipment;
	}
 
	@Override
	public String toString() {
		return super.toString() + "\t程序员\t" + status + "\t\t\t" + equipment;
	}
	
	public String toString2() {
		return memberId + "/" + say() + "\t程序员";
	}
}
